package com.hmall.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hmall.order.pojo.Order;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderMapper extends BaseMapper<Order> {

    /**
     * 查询所有订单
     * @param status 订单状态
     * @return
     */
    @Select("select * from tb_order where status=#{status}")
    List<Order> findOrders(Integer status);
}
